package com.hnichr.ump.autoconfigure;

import com.hnichr.ump.common.Constant;
import com.mxpioframework.common.wrapper.BooleanWrapper;

public class ModuleUtils {

	public static boolean contains(String moduleKey){
		final BooleanWrapper result = new BooleanWrapper();
		Constant.getModules().forEach(item -> {
			if(item.getModuleKey().equals(moduleKey)){
				result.value = true;
			}
		});
		return result.value;
	}
}
